package com.vframework.system.user.mapper;

import java.util.List;
import java.util.Map;

import com.vframework.base.mapper.BaseMapper;
import com.vframework.base.model.BaseBean;
import com.vframework.system.role.model.RoleBean;
import com.vframework.system.user.model.UserBean;

public interface UserMapper extends BaseMapper {
    
    public Integer getCount(Map<?, ?> paramMap);

    public List<UserBean> getUserList(Map<?, ?> paramMap);
    
    public UserBean getUserById(String userId);
    
    public Integer checkOldPwd(Map<?, ?> paramMap);
    
    public List<BaseBean> getRoleByOrgId(Map<?, ?> paramMap);
    
    public List<BaseBean> getRoleByMap(Map<?, ?> paramMap);
    
    public Integer getUserEditCount(UserBean userBean);
    
    public Integer queryTemplateList(Map<?, ?> paramMap);
    
    public UserBean getUserByName(Map<?, ?> paramMap);
    
//    public List<MenuBean> getSessionMenu(Map<?, ?> paramMap);
    
    public int insertUser(UserBean userBean);
    
    public int updateUser(UserBean userBean);
    
    public int personInfo(UserBean userBean);
    
    public int updatePassword(Map<?, ?> paramMap);
    
    public int pauseUserStat(Map<?, ?> paramMap);
    
    public int startUserStat(Map<?, ?> paramMap);
    
    public int deleteUserRole(String userId);
    
    public int insertUserRole(RoleBean roleBean);
    
    public int deleteUser(Map<?, ?> paramMap);
}
